package com.wondertek.poms.service.vo;

import com.wondertek.poms.common.utils.validate.GroupType;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;

@Data
public class SellingPriceVo {

    private Long id;

    //@NotBlank(message = "售价名称不能为空", groups = {Default.class})
    //@Length(message = "售价名称长度不能超过255个字节", max=255, groups = {Default.class, GroupType.Update.class})
    @NotNull
    private Long sellingPriceNum;

    //@NotBlank(message = "计费id不能为空", groups = {Default.class})
    //@Length(message = "计费id不能超过255个字节", max=255, groups = {Default.class, GroupType.Update.class})
    @NotNull
    private Long productId;

    private String price;
    private String description;
    private String name;

}
